#include <opencv/cv.h>
#include <opencv/highgui.h>


int main( int argc, char** argv ) {
	IplImage* img = cvLoadImage( argv[1] );
	cvNamedWindow( "Example1", CV_WINDOW_AUTOSIZE );
	cvShowImage( "Example1", img );

	IplImage* out = cvCreateImage( cvGetSize(img), IPL_DEPTH_8U, 3 );
	// Do the smoothing
	//
	cvNamedWindow("Example1-out");
	cvSmooth( img, out, CV_GAUSSIAN, 3, 3 );
	// Show the smoothed image in the output window
	//
	cvShowImage( "Example1-out", out );
	// Be tidy
	//
	cvWaitKey(0);

	cvReleaseImage( &img );
	cvReleaseImage( &out );

	cvDestroyWindow( "Example1" );
	cvDestroyWindow( "Example1-out");
}

